package com.gxa.admin.recycling.service;

import com.gxa.core.recycling.exception.BusinessException;
import com.gxa.core.recycling.pojo.Admin;
import com.gxa.core.recycling.pojo.Menu;
import com.gxa.core.recycling.service.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @author R
 * @data 2021-12-03 11:20
 */
public interface AdminService extends BaseService<Admin> {

    List<Map<String,Object>> getAllByPage(String nickName,String name,String from,String to,Integer page,Integer size);
    Integer getAllByPageCount(String nickName,String name,String from,String to,Integer page,Integer size);

    Integer getRoleById();
    String getRoleNameById(Integer id);



    Admin loginByPwd(String nickName,String pwd) throws BusinessException;
}
